package com.wolfman.wolfchat.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.wolfman.wolfchat.po.User;
import com.wolfman.wolfchat.vo.Result;

/**
 * @Title
 * @Description
 * @Author WolfMan
 * @Date 2022/1/15 0:42
 * @Email 2370032534@qq.com
 */
public interface UserService extends IService<User> {

    /**
     * 注册用户
     *
     * @param user
     * @return
     */
    Result register(User user);

    /**
     * 用户登录
     *
     * @param user
     * @return
     */
    User login(User user);

    /**
     * 根据用户id查找用户
     *
     * @param userId
     * @return
     */
    User selectByUserId(Integer userId);

}
